package cn.csc.module.pay.api.order.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigInteger;
import java.util.Map;

/**
 * 支付单提交 Request DTO
 * @author liuchuang
 * @version 1.0
 * @modify
 * @since 2024/12/10 16:37
 */
@Data
public class PayOrderSubmitReqDTO {

    @ApiModelProperty(value = "支付单编号", required = true, example = "1024")
    @NotNull(message = "支付单编号不能为空")
    private BigInteger id;

    @ApiModelProperty(value = "支付渠道", required = true, example = "wx_pub")
    @NotEmpty(message = "支付渠道不能为空")
    private String channelCode;

    @ApiModelProperty(value = "支付渠道的额外参数，例如说，微信公众号需要传递 openid 参数", required = true)
    private Map<String, String> channelExtras;

    // 参见 {@link PayDisplayModeEnum} 枚举。如果不传递，则每个支付渠道使用默认的方式
    @ApiModelProperty(value = "展示模式", example = "url")
    private String displayMode;

    @ApiModelProperty(value = "用户IP", example = "1.121.12.12")
    @NotEmpty(message = "用户IP不能为空")
    private String userIp;


}
